import layui from '@/layout/index.vue'

export default [
  {
    path: '/cartoon-manager',
    name: '漫画管理',
    component: layui,
    redirect: '/cartoon-manager',
    children: [
      {
        path: '/cartoon-category',
        name: '漫画分类',
        meta: { title: '漫画分类', keepAlive: true },
        component: () => import('@/views/cartoon-manage/cartoon-category.vue')
      },
      {
        path: '/product-list',
        name: '漫画列表',
        meta: { title: '漫画列表', keepAlive: true },
        component: () => import('@/views/cartoon-manage/productList.vue')
      }
    ]
  },
  {
    path: '/video-manager',
    name: '视频管理',
    component: layui,
    redirect: '/video-manager',
    children: [
      {
        path: '/video-category',
        name: '视频分类',
        meta: { title: '视频分类', keepAlive: true },
        component: () => import('@/views/video-manage/cartoon-category.vue')
      },
      {
        path: '/video-list',
        name: '视频列表',
        meta: { title: '视频列表', keepAlive: true },
        component: () => import('@/views/video-manage/productList.vue')
      }
    ]
  },
  {
    path: '/order-manager',
    name: '订单列表',
    component: layui,
    redirect: '/order-manager',
    children: [
      {
        path: '/order-list',
        name: '订单列表',
        meta: { title: '订单列表' },
        component: () => import('@/views/order-manger/index.vue')
      }
    ]
  },
  {
    path: '/datacenter',
    name: '数据中心',
    component: layui,
    redirect: '/datacenter',
    children: [
      {
        path: '/cartoon-collection',
        name: '漫画采集',
        meta: { title: '漫画采集', keepAlive: true },
        component: () => import('@/views/datacenter/cartoon-collection/index.vue')
      }
    ]
  },
  {
    path: '/cartoon-set',
    name: '系统管理',
    component: layui,
    redirect: '/cartoon-set',
    children: [
      {
        path: '/system/account',
        name: '账号管理',
        meta: { title: '账号管理', keepAlive: true },
        component: () => import('@/views/system-set/account.vue')
      },
      {
        path: '/system/role',
        name: '角色管理',
        meta: { title: '角色管理', keepAlive: true },
        component: () => import('@/views/system-set/role.vue')
      }
    ]
  },
  {
    path: '/novel-manager',
    name: '小说管理',
    component: layui,
    redirect: '/novel-manager',
    children: [
      {
        path: '/novel-category',
        name: '小说分类',
        meta: { title: '小说分类', keepAlive: true },
        component: () => import('@/views/novel-manage/cartoon-category.vue')
      },
      {
        path: '/novel-list',
        name: '小说列表',
        meta: { title: '小说列表', keepAlive: true },
        component: () => import('@/views/novel-manage/productList.vue')
      }
    ]
  }
]
